﻿using AutoMapper;

namespace BackgroundJobManagement;

public class BackgroundJobManagementApplicationAutoMapperProfile: Profile
{
    public BackgroundJobManagementApplicationAutoMapperProfile()
    {
        CreateMap<BackgroundJobEntity, BackgroundJobResult>();
        CreateMap<BackgroundJobCreateParameter, BackgroundJobEntity>();
        CreateMap<BackgroundJobUpdateParameter, BackgroundJobEntity>();
        
        CreateMap<BackgroundScheduleEntity, BackgroundScheduleResult>();
        CreateMap<BackgroundScheduleCreateParameter, BackgroundScheduleEntity>();
        CreateMap<BackgroundScheduleUpdateParameter, BackgroundScheduleEntity>();
    }
}
